package com.nuc.iblog.jpa.cl;

import com.nuc.iblog.entity.Music;
import com.nuc.iblog.entity.User;
import com.nuc.iblog.jpa.BaseJpa;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

@NoRepositoryBean
public interface ClMusicJpa extends BaseJpa<Music,Integer> {
    public List<Music> findAllByUser(User user);
    public Page<Music> findAllByUser(User user, Pageable pageable);
    public Music findByIsbackgroundAndUser(int isbackground,User user);
}
